import request from "../request.js";
// 获取手机验证码 
export function getMobileVerifyCode(data) {
	return request.get('/digital-mall/ignore/auth/api/general/register/getMobileVerifyCode', data)
}
// 校验手机验证码
export function checkMobileVerifyCode(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/checkMobileVerifyCode', data)
}
// 获取邮箱验证码 
export function getEmailVerifyCode(data) {
	return request.get('/digital-mall/ignore/auth/api/general/register/getEmailVerifyCode', data)
}
// 校验邮箱验证码 
export function checkEmailVerifyCode(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/checkEmailVerifyCode', data)
}
// 手机号注册
export function mobileNumberRegister(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/register/mobileNumberRegister', data)
}
// 邮箱注册
export function emailRegister(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/register/emailRegister', data)
}
// 手机号登录
export function mobileNumberLogin(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/mobileNumberLogin', data)
}
// 手机号验证码登录
export function mobileVerifyCodeLogin(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/mobileVerifyCodeLogin', data)
}
// 邮箱登录
export function emailLogin(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/emailLogin', data)
}
// 邮箱验证码登录
export function emailVerifyCodeLogin(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/emailVerifyCodeLogin', data)
}
//忘记密码
export function resetPassword(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/register/resetPassword', data)
}
// 修改手机号 
export function changeMobileNumber(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/changeMobileNumber', data)
}
// 修改邮箱 
export function changeEmail(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/changeEmail', data)
}
// 修改密码 
export function changePassword(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/changePassword', data)
}
// 设置资金密码 
export function setCapitalPassword(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/general/mobileUser/setCapitalPassword', data)
}
// 校验资金密码
export function checkCapitalPassword(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/general/mobileUser/checkCapitalPassword', data)
}
// 实名认证提交 
export function applyRealname(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/general/realnameAuth/applyRealname', data)
}
// 实名认证-身份证 
export function cardAuth(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/general/realnameAuth/cardAuth', data)
}
// 实名认证-护照 
export function passportAuth(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/verify/passportAuth/add', data)
}
// 语言列表 
export function getLanguageList(data) {
	return request.get('/digital-mall/api/general/mobileConfig/getLanguageList', data)
}
// 国籍列表 
export function getNationalityList(data) {
	return request.get('/digital-mall/api/general/mobileConfig/getNationalityList', data)
}
// 语言设置
export function saveOrUpdateLanguage(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/general/mobileConfig/saveOrUpdateLanguage', data)
}
// 主题设置
export function saveOrUpdateTheme(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/general/mobileConfig/saveOrUpdateTheme', data)
}
// 配置查询
export function queryByMobileUserId(data) {
	return request.get('/digital-mall/api/general/mobileConfig/queryByMobileUserId', data)
}
// 退出登录
export function logout(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/logout', data)
}
// 设置昵称
export function setNickname(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/setNickname', data)
}
// 校验密码 
export function checkPassword(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/checkPassword', data)
}
// 增加人脸数据*
export function addFace(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/addFace', data)
}
// 人脸登录*
export function faceLogin(data) {
	data.isArray = 1;
	return request.post('/digital-mall/ignore/auth/api/general/login/faceLogin', data)
}
// 客户-个人信息 
export function customerInfo(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/customer/info', data)
}
// 开通会员 
export function membershipLevelOpen(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/mumbership/membershipLevel/open', data)
}
// 地址
// 地址信息-添加 
export function addressInfoAdd(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/address/addressInfo/add', data)
}
// 地址列表 
export function addressInfoList(data) {
	return request.get('/digital-mall/api/address/addressInfo/list', data)
}
// 设置默认 
export function setDefaultAddress(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/address/addressInfo/setDefaultAddress', data)
}
// 地址信息-编辑 
export function addressInfoEdit(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/address/addressInfo/edit', data)
}
// 地址信息-通过id删除 
export function addressInfoDelete(data) {
	// data.isArray = 1;
	return request.del('/digital-mall/api/address/addressInfo/delete', data)
}
// 三级下线用户列表 
export function inviteList(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/invite/inviteList', data)
}
// 佣金交易类型 
export function commissionTradeType(data) {
	return request.get('/digital-mall/api/commission/commission/commissionTradeType', data)
}
// 经纪人-佣金记录 
export function commissionList(data) {
	return request.get('/digital-mall/api/commission/commission/list', data)
}
// 邀请奖励类型 
export function inviteRewardTradeType(data) {
	return request.get('/digital-mall/api/reward/inviteReward/inviteRewardTradeType', data)
}
// 邀请奖励记录 
export function inviteRewardList(data) {
	return request.get('/digital-mall/api/reward/inviteReward/list', data)
}
// 经纪人佣金汇总 
export function commissionTotal(data) {
	return request.get('/digital-mall/api/commission/commission/total', data)
}
// 三级用户流水 
export function commissionTradeFlow(data) {
	return request.get('/digital-mall/api/commission/commission/tradeFlow', data)
}
// 我的全部资产 
export function assetList(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/asset/list', data)
}
// 每日收益 
export function assetDayProfitLoss(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/asset/dayProfitLoss', data)
}
// 账单类型 
export function bill_type(data) {
	return request.get('/digital-mall/api/bill/fullBill/bill_type', data)
}
// 全部账单 
export function fullBillList(data) {
	return request.get('/digital-mall/api/bill/fullBill/list', data)
}
// 	今日奖励-累计奖励
export function totalInviteReward(data) {
	return request.get('/digital-mall/api/reward/inviteReward/totalInviteReward', data)
}
// 今日佣金-累计佣金 
export function totalAmount2(data) {
	return request.get('/digital-mall/api/commission/commission/totalAmount', data)
}
// 历史收益率 
export function historyProfitLossRate(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/asset/historyProfitLossRate', data)
}
// 累计收益率 
export function profitLossRate(data) {
	data.isArray = 1;
	return request.post('/digital-mall/api/asset/profitLossRate', data)
}
// 期权下单最大值与最小值 
export function optionOrderMaxMin(data) {
	return request.get('/digital-mall/api/options/options/optionOrderMaxMin', data)
}
// 个人参与最低最高额度:BTC,ETH,USDT 
export function liquidity_individual_quota(data) {
	return request.get('/digital-mall/api/liquidity/liquidityCistern/liquidity_individual_quota', data)
}
// 交易收益
export function getBuySellData(data) {
	return request.get('/digital-mall/api/bill/fullBill/getBuySellData', data)
}
// 判断是否注销 是否冻结
export function getUserStatus(data) {
	return request.get(`/digital-mall/ignore/auth/api/general/login/status/${data}`,{})
}






